const { Sequelize } = require('sequelize');

const sequelize = new Sequelize('run', 'sa', '1T!xxfd', {
  host: '10.224.xxx.1',
  port: 1433, // 端口不是默认的话就修改
  dialect: 'mssql',
});

;(async function() {
  try {
    await sequelize.authenticate();
    console.log('连接成功');
    // 关闭连接
    sequelize.close()
  } catch (error) {
    console.error('连接失败:', error);
  }
})()
